package com.zhongli.devplatform.job;

import com.zhongli.devplatform.service.imp.sys.ReadAddressService;
import com.zhongli.devplatform.service.impl.sys.AddressServiceImpl;
import com.zhongli.devplatform.component.SpringUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;


@Slf4j
public class AddressSynchronizeDataJob extends QuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        ReadAddressService addressService = SpringUtil.getBean(AddressServiceImpl.class);
        addressService.synchronizeData();
    }
}
